Skip to main content

compact

Type

command

Summary

Reclaims unused space within a stack's file structure.

Syntax

compact <stack>

Description

When you cut or delete a card, some free space is left within the stack. This empty space is reclaimed when you choose File menu. Use the compact command to reclaim this empty space without having to save the stack.

This command is especially useful when a handler performs multiple rearrangements of cards without saving the stack.

The "Save" menu item in the File menu automatically compacts the stack. However, the save command does not do so.

Parameters

NameTypeDescription

stack

Any stack reference.

Examples

compact this stack
compact stack "Project 1"

object: stack

command: delete

glossary: command

keyword: file

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?